Usability: panel pages and preview button

Events happening in the community are now at Drupal community events on www.drupal.org.
crea's picture

Preview functionality is known feature of many publishing systems: it's intended to show exactly how your content will look like before publishing. With nodes displayed in Panel Pages there is issue that panel layout can be quite complex, and sometimes you can't have same display in Panel Page and in preview (without spending too much effort). Basically, to have same display one would have to code that complex layout in node template too, in addition to Panel lauout template, or have some way to render Panel display in preview.
How do you solve that problem ?
Is it possible to render Panel page in preview in place of node template ?

Also crossposted in http://drupal.org/node/566084

Comments

Panel Previews

cpelham's picture

You might consider making changes to a Panel in a mirror image (or close as possible) dev version of your site that only the relevant people can see. If you are satisfied with how it looks, export the panel and then import it into your live site. It's not an ideal system but might work. You would have to do this in dev. You could make a copy of the panel you want to revise. Make it viewable only by you until you are happy with the revisions, and then replace the previous panel with the new one.


Christopher Pelham
Director
CRS (Center for Remembering & Sharing)
http://www.crsny.org

CRS (Center for Remembering & Sharing) is an arts & healing center located just south of Union Square in Manhattan.

It's not about editing

crea's picture

It's not about editing Panel. It's about any user editing any node, which is rendered using "node_view" Page Manager task.

Override theme_node_preview()

markus_petrux's picture

Override theme_node_preview() and here you can render the node using the proper panel.

Another option would be to append a new button "Preview in production" or something similar to the node edit form that works like "Preview" but using panels rendering stuff.

Thanks markus, very useful

crea's picture

Thanks markus, very useful comment!

I decided to use theme

crea's picture

I decided to use theme override. I'll discuss this in http://drupal.org/node/566084 further.

Panels

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: